import * as Enums from "@/common/enums";
import {labelList} from "@/common/interface";



export const getLabel = (source:Array<labelList>,value:string|number):string => {
  const result = source.filter(e=>e.value==value);
  if(result&&result.length){
    return result[0].label
  } else{
    return ''
  }
}